package com.xinghou.platform.dao.main;

import com.xinghou.platform.model.main.FavoriteCard;
import com.xinghou.platform.model.main.FavoriteSubject;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by qingshengzheng on 16/6/25.
 */
@Repository("FavoriteDAO")
public interface FavoriteDAO {
    public void addFavoriteCard(FavoriteCard favoriteCard);

    public List<Long> getFavoriteCards(Long uid, Integer startno, Integer pagesize);

    public void delFavoriteCard(Long uid,Long subjectid);
    public void addFavoriteSubject(FavoriteSubject favoriteSubject);

    public int hasFavoritySubject(Long uid,Long subjectid);

    public int hasFavorityCard(Long uid,Long cardid);


    public List<Long> getFavoriteSubjectList(Long uid, Integer startno, Integer pagesize);

    public void delFavoriteSubject(Long uid,Long subjectid);

}
